package com.spring.security.filefetch;

import java.io.File;

/**
 * Created by wojunyu on 2015/8/4.
 */
public class TestMethod {
    public TestMethod() {
        try {
//            DownFileInfoBean bean = new DownFileInfoBean(
//                    "https://codeload.github.com/zhangkaitao/shiro-example/zip/master", "C:\\temp",
//                    "shiro-example-master.zip", 5,true,null);
			File file = new File("C:\\tool\\TortoiseGit_1.8.14.msi");
			DownFileInfoBean bean = new DownFileInfoBean(null, "C:\\temp",
					"TortoiseGit_1.8.14.msi", 5,false,file);
            DownFileFetch fileFetch = new DownFileFetch(bean);
            fileFetch.start();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

//    public static void main(String[] args) {
//        new TestMethod();
//    }
}
